import request from '@/utils/request'
export const getUserInfo = function () {
  return request.get('/home/swiper')
}
export const updateCollect = function (id) {
  return request.post('/user/favorites/' + id)
}
export const getHouseDetail = function (id) {
  return request.get('/houses/' + id)
}
export const getCollect = function () {
  return request.get('/user/favorites')
}
export const delCollect = function (id) {
  return request.delete('/user/favorites/' + id)
}
export const getisCollect = function (id) {
  return request.get('/user/favorites/' + id)
}
export const getCity = function (data) {
  return request.get('/area/city', {
    params: {
      level: data
    }
  })
}
export const gethotCity = function () {
  return request.get('/area/hot')
}
